{% extends "base.html" %}

{% block title %}{{ look_student.name }}的个人信息与介绍{% endblock %}
{% block content %}
<div class="container">
	<br/>
	<h1>{{ look_student.name }}</h1>
	<br/>
	{% if look_student.bool_intro %}
		<legend></legend>
		<div class="container-fluid">
			<div class="row justify-content-between">
				<div class="col-md-6">
					<table class="table table-striped">
						<thead>
							<th scope="col">{{ look_student.name }}</th>
							<th scope="col">一点基本信息</th>
						</thead>
						<tbody>
							<tr>
								<th scope="row">姓名</th>
								<td>{{ look_student.name }}</td>
							</tr>
							<tr>
								<th scope="row">QQ号</th>
								<td>{{ look_student.qq_number }}</td>
							</tr>
							<tr>
								<th scope="row">电话号码</th>
								<td>{{ look_student.phone_number }}</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="col-md-6">
					<table class="table table-striped">
						<thead>
							<th scope="col">#</th>
							<th scope="col">集体主观评分</th>
						</thead>
						<tbody>
							<tr>
								<th scope="row">智商</th>
								<td>{{ score.iq }}/10</td>
							</tr>
							<tr>
								<th scope="row">情商</th>
								<td>{{ score.eq }}/10</td>
							</tr>
							<tr>
								<th scope="row">人际交往</th>
								<td>{{ score.relation }}/10</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
				
		</div>
		

		<br/>
		<h3>自我介绍:</h3>
			 <!-- <p></p>  -->
		<p>{{ html|safe }}</p>

		<br/>
		<p>上次编辑：{{ look_student.last_edit }}</p>
		<a class="btn btn-primary" href="{% url 'student:history' look_student.seat_number %}">查看编辑历史</a>
		<a class="btn btn-primary" href="{% url 'student:editor' look_student.seat_number %}" 
					role='button'>我来补充几句！</a>
		<a class="btn btn-primary" href="{% url 'student:comment' look_student.seat_number %}" 
					role='button'>查看评论</a>
		<a class="btn btn-primary" href="{% url 'student:comment_editor' look_student.seat_number %}" 
					role='button'>编辑评论</a>
		<br/><br/>
	{% else %}
		<p>并没有人帮他写介绍捏</p>
		<a href="{% url 'student:editor' look_student.seat_number %}">要不然你来当这个冤大头？</a>
	{% endif %}
</div>
{% endblock %}